package com.example.chessbattleplatform.web.chess_rooms.Pojo.Enum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
// 玩家或房间 等待 的状态
public enum AwaitStatusEnum implements IEnum<String>  {
    //    默认值为 'waiting' 等待中 running 运行中 finished 已结束
    // waiting 等待中
    WAITING("WAITING"),
    // running 运行中
    RUNNING("RUNNING"),
    // finished 结束
    FINISHED("FINISHED");
    @EnumValue
    private final String message;
    @Override
    public String getValue() {
        return message;
    }
    @Override
    public String toString() {
        return  message ;
    }
}
